import service from '@/request/service'

// 年份配置，照片风格配置
export const getMisc = data => service.get('/getMisc')

// 风格照片列表
export const getStyles = params => service.get(`/getStyles`, { params })

// 上传凭证
export const getUploadAuth = data => service.get('/getUploadAuth')

// 图片上传
export const upload = data => service.post('/upload', data, { contentType: 'multipart/form-data' })

// 合成图片
export const createPic = data => service.post('/createPic', data)

// 下载图片
export const downloadUrl = '/download'